

import java.util.Objects;

public class Card {
    private final int rank;
    private final String Decor;

    public Card(int rank,String Decor){
        this.rank = rank;
        this.Decor = Decor;
    }

    // [♥ A]...
    @Override
    public String toString() {
        return String.format("[%s %s]",Decor,rankToString(rank));
    }

    private static  String rankToString(int rank) {
        switch(rank){
            case 1:
                return "A";
            case 11:
                return "J";
            case 12:
                return "Q";
            case 13:
                return "K";
            default:
                return String.valueOf(rank);
        }
    }
}